package cn.shuangliang.contract.model;

import java.util.Date;

public class Contracthistory {
    private Long id;

    //private String contractno;

    private long cid;

    //额外的合同号
    private String contractno;

    private Long prodid;

    //额外的
    private String pname;
    //额外的商品全部信息
    private Product product;

    private Double atweight;

    private Integer atnum;

    private Date attime;

    private String marker;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public String getContractno() {
        return contractno;
    }

    public void setContractno(String contractno) {
        this.contractno = contractno;
    }

    public String getPname() {
        return pname;
    }

       public void setPname(String pname) {
        this.pname = pname;
    }

//    public String getContractno() {
//        return contractno;
//    }
//
//    public void setContractno(String contractno) {
//        this.contractno = contractno == null ? null : contractno.trim();
//    }

    public long getCid() {
        return cid;
    }

    public void setCid(long cid) {
        this.cid = cid;
    }

    public Long getProdid() {
        return prodid;
    }

    public void setProdid(Long prodid) {
        this.prodid = prodid;
    }

    public Double getAtweight() {
        return atweight;
    }

    public void setAtweight(Double atweight) {
        this.atweight = atweight;
    }

    public Integer getAtnum() {
        return atnum;
    }

    public void setAtnum(Integer atnum) {
        this.atnum = atnum;
    }

    public Date getAttime() {
        return attime;
    }

    public void setAttime(Date attime) {
        this.attime = attime;
    }

    public String getMarker() {
        return marker;
    }

    public void setMarker(String marker) {
        this.marker = marker == null ? null : marker.trim();
    }

    @Override
    public String toString() {
        return "Contracthistory{" +
                "id=" + id +
                ", cid=" + cid +
                ", prodid=" + prodid +
                ", pname='" + pname + '\'' +
                ", atweight=" + atweight +
                ", atnum=" + atnum +
                ", attime=" + attime +
                ", marker='" + marker + '\'' +
                '}';
    }
}